Automattic\Jetpack\Search\Classic_Search D

Total Complexity 267
Dependencies 10
Dependents 2
Total lines 2,057
Lines of code 1,126
Logical lines of code 540
Comment lines 630
Methods 46
Properties 9

Methods 46

Method Rating Maintainability Complexity Lines of code
get_filters()
D
17
66 235
convert_wp_es_to_es_args()
D
20
35 291
do_search()
A
42 14 51
search()
A
40 13 57
get_es_wp_query_terms_for_query()
A
53 11 21
move_search_widgets_to_inactive()
A
51 10 27
add_aggregations_to_es_query_builder()
A
53 8 24
get_active_filter_buckets()
A
57 8 17
get_es_wp_query_post_type_for_query()
S
51 7 28
filter__posts_pre_query()
S
48 6 33
add_product_attribute_aggregation_to_es_query_builder()
S
52 6 24
get_search_result()
S
69 6 6
fix_aggregation_ordering()
S
62 5 12
filter__add_date_filter_to_query()
S
52 4 25
add_date_histogram_aggregation_to_es_query_builder()
S
57 4 17
maybe_add_post_type_as_var()
S
58 4 16
add_taxonomy_aggregation_to_es_query_builder()
S
54 3 23
print_query_success()
S
60 3 15
track_widget_updates()
S
59 3 15
_apply_boosts_multiplier()
S
60 3 14
and_es_filters()
S
61 3 13
update_search_results_aggregations()
S
62 3 11
instance()
S
64 3 10
set_filters_from_widgets()
S
66 3 9
set_filters()
S
67 3 8
get_search_aggregations_results()
S
67 3 8
get_taxonomy_query_var()
S
68 3 7
init_hooks()
S
59 2 13
setup()
S
70 2 7
has_vip_index()
S
79 2 3
print_query_failure()
S
65 2 10
get_last_query_info()
S
79 2 3
get_last_query_failure_info()
S
79 2 3
should_handle_query()
S
78 2 3
_get_caret_boosted_fields()
S
68 2 7
build_product_attribute_agg()
S
62 1 12
add_post_type_aggregation_to_es_query_builder()
S
64 1 11
add_author_aggregation_to_es_query_builder()
S
64 1 11
__construct()
S
91 1 2
initialize()
S
78 1 3
__clone()
S
81 1 3
__wakeup()
S
81 1 3
store_query_failure()
S
75 1 4
store_last_query_info()
S
75 1 4
are_filters_by_widget_disabled()
S
81 1 3
action__widgets_init()
S
76 1 4